package com.example.whltest.controller;
import com.crazymakercircle.util.Logger;
import java.nio.IntBuffer;

public class UseBuffer
{
	//一个整型的Buffer静态变量
	static IntBuffer intBuffer = null;
	public static void allocateTest()
	{
//创建了一个Intbuffer实例对象
		intBuffer = IntBuffer.allocate(20); 
		Logger.debug("------------after allocate------------------");
		Logger.debug("position=" + intBuffer.position());
		Logger.debug("limit=" + intBuffer.limit());
		Logger.debug("capacity=" + intBuffer.capacity());
	}
    //...省略其他代码
}

